// 封装所有文章的接口
import request from '@/utils/request.js'

/**
 *
 * @param {Object} params{channel_id,timestamp,with_top}
 * @returns
 */
export const getArticleList = params => {
  return request({
    method: 'GET',
    url: '/v1_1/articles',
    params
  })
}

export const getArticleInfo = id => {
  return request({
    method: 'GET',
    url: '/v1_0/articles/' + id
  })
}
